package cn.edu.zut.hhr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import cn.edu.zut.hhr.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author HHR
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("文章")
public class Article extends BaseEntity {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 浏览量
     */
    private Integer viewCounts;

    /**
     * 点赞数目
     */
    private Integer likeCounts;

    /**
     * 评论数目
     */
    private Integer commentCounts;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String summary;

    /**
     * 是否置顶,权重越大优先级越高,默认-1不置顶
     */
    private Integer top;

    /**
     * 作者id
     */
    private Long uid;

    /**
     * 内容id
     */
    private Long bid;

    @ApiModelProperty("用户头图路径")
    private String imgUrl;

    @ApiModelProperty("作者名")
    private String authorName;

}
